package com.skp.shaphan.actions;

import com.skp.shaphan.layout.SQLEditorLayout;
import com.skp.shaphan.timing.TimerAction;
import com.skp.shaphan.ui.SQLEditor;

public class SQLEditorLayoutAction extends TimerAction {
	private SQLEditor editor;
	public SQLEditorLayoutAction(SQLEditor editor) {
		this.editor = editor;
	}
	@Override
	public boolean isComplete() {
		SQLEditorLayout layout = (SQLEditorLayout) editor.getLayout();
		return layout.isLayoutComplete();
	}
	@Override
	public void performAction() {
		editor.doLayout();
	}
}
